package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Collect;
import tech.aistar.mapper.CollectMapper;
import tech.aistar.service.ICollectService;

import java.util.List;


@Service
public class CollectServiceImpl implements ICollectService {
    @Autowired
    private CollectMapper collectMapper;
//    @Override
//    public Integer  InsertAll(Collect collect) {
//             Collect collect1 = new Collect();
////             collect.setId(collect.getId());
//             collect1.setLanguageType(collect.getLanguageType());
//             collect1.setColDiff(collect.getColDiff());
//             collect1.setColStem(collect.getColStem());
//             collect1.setColId(collect.getColId());
//           collectMapper.InsertAll(collect1);
//    }

    @Override
    public Integer InsertAll(Collect collect) {
        return collectMapper.InsertAll(collect);
    }

    @Override
    public List<String> findColStem() {
        return collectMapper.findColStem();
    }

    @Override
    public String findstem(String stem) {
        return collectMapper.findstem(stem);
    }

    @Override
    public List<Collect> findAllUserCol(String uid) {
        return collectMapper.findAllUserCol(uid);
    }

    @Override
    public List<Collect> findQueId(Long colId, String colType, Long queId) {
        return collectMapper.findQueId(colId,colType,queId);
    }

    @Override
    public Integer delCollect(Long colId, String colType, Long queId) {
        return collectMapper.delCollect(colId,colType,queId);
    }
}
